package com.holic.spring.custom.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;


/**
 * @ClassName GraphQLMapping
 * @Description
 * @Author Neil
 * @Date 2024/11/12 15:55
 * @Version V1.0
 **/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface GraphQLMapping {

    String QUERY = "Query";
    String MUTATION = "Mutation";
    String SUBSCRIPTION = "Subscription";

    @AliasFor("value")
    String field() default "";

    @AliasFor("field")
    String value() default "";

    String typeName() default QUERY;

}
